import click from './intervalclick' // 按钮防抖
import copy from './copy' // 一键复制
import longpress from './longpress' // 长按触发
import emoji from './emoji' // 禁止输入表情和特殊字符
// 自定义指令
const directives = {
  click,
  copy,
  longpress,
  emoji
}

export default {
  install (Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key])
    })
  }
}
